Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to Cockpit with large-UID account
-
DeliveryTrigger do_lastlog offset calculation
-
ExploitInteger overflow wraps 32-bit offset
-
ExecutionRead/write another user's lastlog record
-
ImpactDisclose or tamper login accounting data
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires all of the following: (1) an ILP32 / 32-bit build of Cockpit - 64-bit LP64 builds do not overflow and are unaffected; (2) a low-privileged but authenticated account that an administrator has provisioned with an abnormally large UID, so the 32-bit offset computation in do_lastlog() wraps; and (3) local-vector access to the affected host per the vendor's AV:L rating. Limiting factors: 32-bit RHEL/Cockpit deployments are increasingly uncommon, the large-UID account must be deliberately created by an admin (not attacker-controlled), and no user interaction is needed but authentication is. This is NOT a remote-unauthenticated-against-default-config scenario. |
| Impact | This is a genuinely low-priority issue despite being a memory-safety class (CWE-787) flaw. The vendor CVSS 3.1 vector CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N scores only 3.6, and every signal points to constrained, hard-to-reach exploitation: local vector (AV:L), high attack complexity (AC:H - the integer overflow only triggers on ILP32/32-bit builds AND requires an account provisioned with an abnormally large UID), and low-privileged authenticated access (PR:L). Impact is limited to partial disclosure and tampering of lastlog login-accounting records (C:L/I:L, A:N) - not code execution or full compromise, so the CWE-787 'out-of-bounds write' maps to writing wrong offsets in the lastlog store rather than exploitable memory corruption. No EPSS score, no CISA KEV listing, and no public exploit are present in the input: exploitation status is 'no public exploit identified at time of analysis.' One tension worth flagging: Cockpit is a network-accessed web console (typically port 9090), so AV:N is defensible, yet the vendor chose AV:L - the local rating is consistent with the flaw acting on the local lastlog store and requiring a pre-provisioned local account, but verify the intended vector with Red Hat. Bottom line: low real-world risk, dominated by the ILP32-only and large-UID preconditions. |
| Exploit ScenarioDerived | On a 32-bit (ILP32) build of Cockpit, an administrator has provisioned a low-privileged user account with a very large UID. That authenticated user logs in and triggers do_lastlog(), where the offset calculation for their lastlog entry overflows and wraps around, aliasing another user's record - letting the attacker read or overwrite other users' login-accounting data. No public exploit code is identified at time of analysis, and the attack requires both a 32-bit build and the unusual large-UID precondition. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 18, 2026
An integer-wraparound in Cockpit's do_lastlog() login-accounting routine on ILP32 (32-bit) builds allows a low-privileged but authenticated local user holding an administrator-provisioned abnormally large UID to read and modify other users' lastlog records, producing low confidentiality and low integrity impact (CVSS 3.1 base 3.6, AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N). Exploitation requires a 32-bit build, a deliberately created large-UID account, and local access to the host; 64-bit LP64 builds do not overflow and are unaffected, and no public exploit code has been identified at time of analysis.
RemediationAI
No vendor-released patch or fixed package version is identified in the available advisory data at time of analysis; monitor https://access.redhat.com/security/cve/CVE-2026-91142 and https://bugzilla.redhat.com/show_bug.cgi?id=2479459 for the errata package version and apply it as soon as it is published. Because the flaw only triggers on ILP32 builds, the most effective workaround is to migrate the affected host or container image to a 64-bit LP64 build of Cockpit, where the offset arithmetic cannot wrap - the trade-off being that unsupported 32-bit hardware or legacy image dependencies must be re-platformed. Administrators should also audit account inventories for abnormally large UIDs (for example values approaching or exceeding 2^31) and remove or reassign them, since the attack prerequisites include an admin-provisioned oversized UID; the side effect is that legitimate high-UID service or integration accounts must be renumbered, which can break file ownership and NSS/LDAP mappings. Restricting local login to trusted operators reduces exposure but does not remove the underlying defect, and disabling Cockpit's login-history views entirely removes the attack surface at the cost of losing the console's lastlog reporting feature.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Cockpit is Red Hat's browser-based Linux server administration console, shipped with Red Hat Enterprise Linux 7 through 10 and bundled into Red Hat OpenShift Dev Spaces images. Its do_lastlog() routine reads the on-disk lastlog database, which stores one fixed-size record per UID, and derives each record's file offset by multiplying the UID by the record size. On ILP32 builds - where int, long and pointers are all 32 bits - an abnormally large UID makes that arithmetic wrap, so the computed offset lands on another user's record instead of the requesting user's own. The subsequent operations then read and write outside the intended bounds, which is the CWE-787 (out-of-bounds write) behaviour plus the integer-overflow root cause flagged by Red Hat, letting the caller disclose or tamper with login accounting data. On LP64 (64-bit) builds the wider integer type keeps the offset calculation in range, so the defect is confined to ILP32 platforms; the CVSS vector (AV:L/AC:H/PR:L/UI:N) confirms the attack is local, high-complexity, requires low privilege with authentication, and needs no user interaction.
Know when Cockpit gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N
ILP32-only plus admin-provisioned large-UID precondition make AC:H; low-priv authenticated (PR:L); only partial lastlog read/tamper (C:L/I:L, A:N); AV:L per vendor though AV:N is defensible for a web console.
Primary rating from Vendor (redhat).
CVSS VectorVendor: redhat
DescriptionCVE.org
A flaw was found in Cockpit. An integer overflow vulnerability in the do_lastlog() function, specifically in the offset calculation for lastlog entries on ILP32 (Integer, Long, Pointer 32-bit) builds, can be exploited. A low-privileged authenticated user with a specially provisioned large User ID (UID) can cause the computed offset to wrap around. This allows the user to perform unauthorized reads and writes to other users' lastlog records, potentially disclosing or altering sensitive login accounting information.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.
Affected Products (CPE)CVE.org
Agentejo Cockpit before 0.11.2 allows NoSQL injection via the Controller/Auth.php resetpassword function. Rated critical
Agentejo Cockpit before 0.11.2 allows NoSQL injection via the Controller/Auth.php check function. Rated critical severit
Insufficient Session Expiration in GitHub repository cockpit-hq/cockpit prior to 2.2.0. Rated critical severity (CVSS 9.
Agentejo Cockpit before 0.11.2 allows NoSQL injection via the Controller/Auth.php newpassword function. Rated critical s
Agentejo Cockpit performs actions on files without appropriate validation and therefore allows an attacker to traverse t
SSRF (Server Side Request Forgery) in /assets/lib/fuc.js.php in Cockpit 0.4.4 through 0.5.5 allows remote attackers to r
PHP Remote File Inclusion in GitHub repository cockpit-hq/cockpit prior to 2.6.3. Rated high severity (CVSS 8.8), this v
A Cross-Site Request Forgery (CSRF) in the Admin portal of Cockpit CMS v2.5.2 allows attackers to execute arbitrary Admi
Unrestricted Upload of File with Dangerous Type in GitHub repository cockpit-hq/cockpit prior to 2.4.1. Rated high sever
Privilege Chaining in GitHub repository cockpit-hq/cockpit prior to 2.3.8. Rated high severity (CVSS 8.8), this vulnerab
Improper Removal of Sensitive Information Before Storage or Transfer in GitHub repository cockpit-hq/cockpit prior to 2.
Authenticated remote code execution in Cockpit CMS lets attackers holding collection-management privileges inject arbitr
EUVD-2026-83176
GHSA-2f43-vjp7-v3qj
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB