Skip to content
Heist/ feed
Back to feed
Medium

entr — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-18370

entr is vulnerable to Heap-based buffer overflow in run_utility() function. The function allocates a fixed-size heap buffer using malloc(ARG_MAX) and copies command-line arguments into it. It advances the destination pointer based on the return value of strlcpy(), which returns the total length of the source string rather than the number of bytes written. When the buffer is exactly filled, the remaining size underflows as an unsigned size_t, causing subsequent copies to write out of bounds. This can be triggered by supplying command-line arguments whose combined length fills the buffer, or via the /_ substitution feature which expands a short token into a longer pathname at runtime. The local attacker can cause memory corruption, process abort, and denial of service. This issue was fixed in commit 2467fe0

Products
entr
Affected versions
2.6-1, 3.3-1, 3.4-1, 3.7-1, 3.9-1, 4.1-1, 4.3-1, 4.4-1, 4.8-1, 5.0-1, 5.1-1, 5.3-1, 5.5-1, 5.7-1, 5.7-1build1, 5.8-1
Fixed versions
Not specified
CVEs
CVE-2026-18370
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 02:55 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-18370

core-osv · Original source

Published 10 Aug 2026, 13:17 UTC

entr is vulnerable to Heap-based buffer overflow in run_utility() function. The function allocates a fixed-size heap buffer using malloc(ARG_MAX) and copies command-line arguments into it. It advances the destination pointer based on the return value of strlcpy(), which returns the total length of the source string rather than the number of bytes written. When the buffer is exactly filled, the remaining size underflows as an unsigned size_t, causing subsequent copies to write out of bounds. This can be triggered by supplying command-line arguments whose combined length fills the buffer, or via the /_ substitution feature which expands a short token into a longer pathname at runtime. The local attacker can cause memory corruption, process abort, and denial of service. This issue was fixed in commit 2467fe0

osv:UBUNTU-CVE-2026-18370

entr

Fixed versions: Not specified

entr

Fixed versions: Not specified

entr

Fixed versions: Not specified

entr

Fixed versions: Not specified

entr

Fixed versions: Not specified

entr

Fixed versions: Not specified

entr

Fixed versions: Not specified

Complete source record
{
  "id": "126776a1d8a80ac2a322bb83bd2376d117b5d3c18f809681888be171be108087",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-18370",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-18370",
    "summary": "entr is vulnerable to Heap-based buffer overflow in run_utility() function. The function allocates a fixed-size heap buffer using malloc(ARG_MAX) and copies command-line arguments into it. It advances the destination pointer based on the return value of strlcpy(), which returns the total length of the source string rather than the number of bytes written. When the buffer is exactly filled, the remaining size underflows as an unsigned size_t, causing subsequent copies to write out of bounds. This can be triggered by supplying command-line arguments whose combined length fills the buffer, or via the /_ substitution feature which expands a short token into a longer pathname at runtime. The local attacker can cause memory corruption, process abort, and denial of service. This issue was fixed in commit 2467fe0",
    "evidence": "osv:UBUNTU-CVE-2026-18370",
    "products": [
      {
        "name": {
          "value": "entr",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.6-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.3-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.4-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "entr",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.7-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.9-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "entr",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.1-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "4.3-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "4.4-1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "entr",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.8-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "5.0-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "5.1-1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "entr",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "5.3-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "5.5-1",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "entr",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "5.7-1build1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "5.8-1",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "entr",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "5.7-1",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "5.7-1build1",
            "evidence": "/affected/6/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2026-18370",
      "aliases": [
        "UBUNTU-CVE-2026-18370"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "entr",
            "purl": "pkg:deb/ubuntu/entr?arch=source&distro=xenial",
            "ecosystem": "Ubuntu:16.04:LTS"
          },
          "versions": [
            "2.6-1",
            "3.3-1",
            "3.4-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-18370.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "entr",
                "binary_version": "3.4-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "entr",
            "purl": "pkg:deb/ubuntu/entr?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "3.7-1",
            "3.9-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-18370.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "entr",
                "binary_version": "3.9-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "entr",
            "purl": "pkg:deb/ubuntu/entr?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "4.1-1",
            "4.3-1",
            "4.4-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-18370.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "entr",
                "binary_version": "4.4-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "entr",
            "purl": "pkg:deb/ubuntu/entr?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "4.8-1",
            "5.0-1",
            "5.1-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-18370.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "entr",
                "binary_version": "5.1-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "entr",
            "purl": "pkg:deb/ubuntu/entr?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "5.3-1",
            "5.5-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-18370.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "entr",
                "binary_version": "5.5-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "entr",
            "purl": "pkg:deb/ubuntu/entr?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "5.7-1build1",
            "5.8-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-18370.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "entr",
                "binary_version": "5.8-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "entr",
            "purl": "pkg:deb/ubuntu/entr?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "5.7-1",
            "5.7-1build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-18370.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "entr",
                "binary_version": "5.7-1build1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:59:53.606690833Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-18370"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-18370",
        "https://www.cve.org/CVERecord?id=CVE-2026-18370",
        "https://cert.pl/en/posts/2026/08/CVE-2026-18370",
        "https://eradman.com/entrproject/",
        "https://github.com/eradman/entr/commit/2467fe0aa5f2b1b074110a9186ef51d35809c9a4"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-18370",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 359879,
  "published_at": "2026-08-10T13:17:00+00:00"
}