Debian dla-4945 : patch - security update

medium Nessus Plugin ID 387642

Synopsis

The remote Debian host is missing a security-related update.

Description

The remote Debian 12 host has a package installed that is affected by a vulnerability as referenced in the dla-4945 advisory.

- ------------------------------------------------------------------------- Debian LTS Advisory DLA-4945-1 [email protected] https://www.debian.org/lts/security/ Simon Quigley November 27, 2026 https://wiki.debian.org/LTS
- -------------------------------------------------------------------------

Package : patch Version : 2.7.6-7+deb12u1 CVE ID : CVE-2026-115207

GNU patch applies a diff to a set of files. An attacker who can get a user or an automated job to apply a crafted patch with patch's -p0 option could create a new file at an arbitrary absolute path, with attacker-chosen contents and the privileges of that user.

CVE-2026-115207

When patch reversed a hunk automatically, either in batch mode (-t) or after the user answered yes to Assume -R?, or when -R was used on a patch that creates a file, it did not check the file name first. A crafted patch could name an absolute path, and patch would create the file there. A git-style header could also make the new file executable or a symbolic link.

For Debian 12 bookworm, this problem has been fixed in version 2.7.6-7+deb12u1.

We recommend that you upgrade your patch packages.

For the detailed security status of patch please refer to its security tracker page at:
https://security-tracker.debian.org/tracker/patch

Further information about Debian LTS security advisories, how to apply these updates to your system, and frequently asked questions can be found at: https://wiki.debian.org/LTS

Tenable has extracted the preceding description block directly from the Debian security advisory.

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Upgrade the patch packages.

See Also

https://packages.debian.org/source/bookworm/patch

https://security-tracker.debian.org/tracker/CVE-2026-115207

https://security-tracker.debian.org/tracker/source-package/patch

Plugin Details

Severity: Medium

ID: 387642

File Name: debian_DLA-4945.nasl

Version: 1.1

Type: Local

Agent: unix

Published: 11/27/2026

Updated: 11/27/2026

Supported Sensors: Continuous Assessment, Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Low

Score: 3

Percentile: 23.89

CVSS v2

Risk Factor: Medium

Base Score: 4.9

Temporal Score: 3.6

Vector: CVSS2#AV:L/AC:L/Au:N/C:N/I:C/A:N

CVSS Score Source: CVE-2026-115207

CVSS v3

Risk Factor: Medium

Base Score: 5.5

Temporal Score: 4.8

Vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

CPE: cpe:/o:debian:debian_linux:12.0, p-cpe:/a:debian:debian_linux:patch

Required KB Items: Host/local_checks_enabled, Host/Debian/release, Host/Debian/dpkg-l

Exploit Ease: No known exploits are available

Patch Publication Date: 11/27/2026

Vulnerability Publication Date: 10/22/2026

Reference Information

CVE: CVE-2026-115207