cve.bz

CVE-2018-1125 Stack-based Buffer Overflow

7.5 highExploit referenceEPSS 1.8%

High (7.5). EPSS 1.8% estimated probability of exploitation activity in the next 30 days.

On this page
procps-ng before version 3.3.15 is vulnerable to a stack buffer overflow in pgrep. This vulnerability is mitigated by FORTIFY, as it involves strncat() to a stack-allocated string. When pgrep is compiled with FORTIFY (as on Red Hat Enterprise Linux and Fedora), the impact is limited to a crash.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
1.8% (unchanged from 1.8% a week ago; 1.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 79th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2025-12-17. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-121 Stack-based Buffer Overflow
CWE-787 Out-of-bounds Write
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-1125 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-1125?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-1125?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-1125 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
procps-ng_project:procps-ngbefore 3.3.15
canonical:ubuntu_linux12.04
canonical:ubuntu_linux14.04
canonical:ubuntu_linux16.04
canonical:ubuntu_linux17.10
canonical:ubuntu_linux18.04
debian:debian_linux7.0
debian:debian_linux8.0
debian:debian_linux9.0
opensuse:leap15.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian7procps1:3.3.3-3+deb7u1DLA-1390-1
Debian8procps2:3.3.9-9+deb8u1DSA-4208-1
Debian9procps2:3.3.12-3+deb9u1DSA-4208-1
Debian12, 13, 14procps2:3.3.15-1DEBIAN-CVE-2018-1125
Ubuntu14.04:LTSprocps1:3.3.9-1ubuntu2.3UBUNTU-CVE-2018-1125 USN-3658-1
Ubuntu16.04:LTSprocps2:3.3.10-4ubuntu2.4UBUNTU-CVE-2018-1125 USN-3658-1
Ubuntu18.04:LTSprocps2:3.3.12-3ubuntu1.1UBUNTU-CVE-2018-1125 USN-3658-1
SUSEEnterprise Storage 4, Linux Enterprise Desktop 12 SP3, Linux Enterprise Desktop 12 SP4 and 12 moreprocps3.3.9-11.18.1SUSE-SU-2019:0450-1
SUSELinux Enterprise Desktop 12 SP3, Linux Enterprise Server 12 SP3, Linux Enterprise Server for SAP Applications 12 SP3 and 1 moreprocps3.3.9-11.11.1SUSE-SU-2018:1836-1
SUSELinux Enterprise Desktop 12 SP3, Linux Enterprise Server 12 SP3, Linux Enterprise Server for SAP Applications 12 SP3 and 1 moreprocps3.3.9-11.14.1SUSE-SU-2018:2451-2
SUSELinux Enterprise Module for Basesystem 15, Linux Enterprise Module for Basesystem 15 SP1procps3.3.15-7.7.26SUSE-SU-2019:2730-1
SUSELinux Enterprise Server 11 SP4, Linux Enterprise Server for SAP Applications 11 SP4procps3.2.7-152.31.1SUSE-SU-2018:2042-1
SUSELinux Enterprise Server for SAP Applications 12 SP1procps3.3.9-11.18.1SUSE-SU-2019:0450-2
openSUSELeap 15.0procps3.3.15-lp150.5.3.1openSUSE-SU-2019:2379-1
openSUSELeap 15.1procps3.3.15-lp151.6.3.1openSUSE-SU-2019:2376-1
openSUSETumbleweedprocps3.3.17-5.2openSUSE-SU-2024:11195-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Low.

Red Hat's mitigation

The procps suite on Red Hat Enterprise Linux is built with FORTIFY, which limits the impact of this stack overflow (and others like it) to a crash.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 5procpsWill not fix
Red Hat Enterprise Linux 6procpsWill not fix
Red Hat Enterprise Linux 7procps-ngWill not fix
Red Hat Enterprise Linux 8procps-ngNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-1125.

References

Check your stackJSON