{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2025-58712",
        "assignerOrgId": "53f830b8-0a3f-465b-8143-3b8a9948e749",
        "state": "PUBLISHED",
        "assignerShortName": "redhat",
        "dateReserved": "2025-09-03T15:20:52.036Z",
        "datePublished": "2025-10-22T18:19:06.763Z",
        "dateUpdated": "2026-03-06T23:45:29.098Z"
    },
    "containers": {
        "cna": {
            "title": "Amq: privilege escalation via excessive /etc/passwd permissions",
            "metrics": [
                {
                    "other": {
                        "content": {
                            "value": "Moderate",
                            "namespace": "https://access.redhat.com/security/updates/classification/"
                        },
                        "type": "Red Hat severity rating"
                    }
                },
                {
                    "cvssV3_1": {
                        "attackComplexity": "HIGH",
                        "attackVector": "LOCAL",
                        "availabilityImpact": "HIGH",
                        "baseScore": 6.4,
                        "baseSeverity": "MEDIUM",
                        "confidentialityImpact": "HIGH",
                        "integrityImpact": "HIGH",
                        "privilegesRequired": "HIGH",
                        "scope": "UNCHANGED",
                        "userInteraction": "NONE",
                        "vectorString": "CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H",
                        "version": "3.1"
                    },
                    "format": "CVSS"
                }
            ],
            "descriptions": [
                {
                    "lang": "en",
                    "value": "A container privilege escalation flaw was found in certain AMQ Broker images. This issue stems from the /etc/passwd file being created with group-writable permissions during build time. In certain conditions, an attacker who can execute commands within an affected container, even as a non-root user, can leverage their membership in the root group to modify the /etc/passwd file. This could allow the attacker to add a new user with any arbitrary UID, including UID 0, leading to full root privileges within the container."
                }
            ],
            "affected": [
                {
                    "vendor": "apache",
                    "product": "activemq-artemis",
                    "versions": [
                        {
                            "status": "unaffected",
                            "version": "0",
                            "lessThan": "*",
                            "versionType": "semver"
                        }
                    ],
                    "packageName": "activemq-artemis",
                    "collectionURL": "https://github.com/apache/activemq-artemis",
                    "defaultStatus": "unknown"
                },
                {
                    "vendor": "Red Hat",
                    "product": "RHEL-9 based Middleware Containers",
                    "collectionURL": "https://catalog.redhat.com/software/containers/",
                    "packageName": "amq7/amq-broker-init-rhel9",
                    "defaultStatus": "affected",
                    "versions": [
                        {
                            "version": "7.13.2-1",
                            "lessThan": "*",
                            "versionType": "rpm",
                            "status": "unaffected"
                        }
                    ],
                    "cpes": [
                        "cpe:/a:redhat:rhosemc:1.0::el9"
                    ]
                },
                {
                    "vendor": "Red Hat",
                    "product": "RHEL-9 based Middleware Containers",
                    "collectionURL": "https://catalog.redhat.com/software/containers/",
                    "packageName": "amq7/amq-broker-rhel9",
                    "defaultStatus": "affected",
                    "versions": [
                        {
                            "version": "7.13.2-1",
                            "lessThan": "*",
                            "versionType": "rpm",
                            "status": "unaffected"
                        }
                    ],
                    "cpes": [
                        "cpe:/a:redhat:rhosemc:1.0::el9"
                    ]
                },
                {
                    "vendor": "Red Hat",
                    "product": "RHEL-9 based Middleware Containers",
                    "collectionURL": "https://catalog.redhat.com/software/containers/",
                    "packageName": "amq7/amq-broker-rhel9-operator",
                    "defaultStatus": "affected",
                    "versions": [
                        {
                            "version": "7.13.2-1",
                            "lessThan": "*",
                            "versionType": "rpm",
                            "status": "unaffected"
                        }
                    ],
                    "cpes": [
                        "cpe:/a:redhat:rhosemc:1.0::el9"
                    ]
                },
                {
                    "vendor": "Red Hat",
                    "product": "RHEL-9 based Middleware Containers",
                    "collectionURL": "https://catalog.redhat.com/software/containers/",
                    "packageName": "amq7/amq-broker-rhel9-operator-bundle",
                    "defaultStatus": "affected",
                    "versions": [
                        {
                            "version": "7.13.2-1",
                            "lessThan": "*",
                            "versionType": "rpm",
                            "status": "unaffected"
                        }
                    ],
                    "cpes": [
                        "cpe:/a:redhat:rhosemc:1.0::el9"
                    ]
                },
                {
                    "vendor": "Red Hat",
                    "product": "RHEL-9 based Middleware Containers",
                    "collectionURL": "https://catalog.redhat.com/software/containers/",
                    "packageName": "amq7-tech-preview/amq-broker-console-plugin-rhel9",
                    "defaultStatus": "affected",
                    "versions": [
                        {
                            "version": "7.13.2-1",
                            "lessThan": "*",
                            "versionType": "rpm",
                            "status": "unaffected"
                        }
                    ],
                    "cpes": [
                        "cpe:/a:redhat:rhosemc:1.0::el9"
                    ]
                },
                {
                    "vendor": "Red Hat",
                    "product": "RHEL-9 based Middleware Containers",
                    "collectionURL": "https://catalog.redhat.com/software/containers/",
                    "packageName": "amq7-tech-preview/amq-broker-jolokia-api-server-rhel9",
                    "defaultStatus": "affected",
                    "versions": [
                        {
                            "version": "7.13.2-1",
                            "lessThan": "*",
                            "versionType": "rpm",
                            "status": "unaffected"
                        }
                    ],
                    "cpes": [
                        "cpe:/a:redhat:rhosemc:1.0::el9"
                    ]
                },
                {
                    "vendor": "Red Hat",
                    "product": "Red Hat AMQ Broker 7",
                    "collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
                    "packageName": "amq-broker-init-rhel8",
                    "defaultStatus": "affected",
                    "cpes": [
                        "cpe:/a:redhat:amq_broker:7"
                    ]
                },
                {
                    "vendor": "Red Hat",
                    "product": "Red Hat AMQ Broker 7",
                    "collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
                    "packageName": "amq-broker-init-rhel9",
                    "defaultStatus": "affected",
                    "cpes": [
                        "cpe:/a:redhat:amq_broker:7"
                    ]
                },
                {
                    "vendor": "Red Hat",
                    "product": "Red Hat AMQ Broker 7",
                    "collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
                    "packageName": "amq-broker-rhel8",
                    "defaultStatus": "affected",
                    "cpes": [
                        "cpe:/a:redhat:amq_broker:7"
                    ]
                },
                {
                    "vendor": "Red Hat",
                    "product": "Red Hat AMQ Broker 7",
                    "collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
                    "packageName": "amq-broker-rhel9",
                    "defaultStatus": "affected",
                    "cpes": [
                        "cpe:/a:redhat:amq_broker:7"
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://access.redhat.com/errata/RHSA-2025:17562",
                    "name": "RHSA-2025:17562",
                    "tags": [
                        "vendor-advisory",
                        "x_refsource_REDHAT"
                    ]
                },
                {
                    "url": "https://access.redhat.com/security/cve/CVE-2025-58712",
                    "tags": [
                        "vdb-entry",
                        "x_refsource_REDHAT"
                    ]
                },
                {
                    "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2394418",
                    "name": "RHBZ#2394418",
                    "tags": [
                        "issue-tracking",
                        "x_refsource_REDHAT"
                    ]
                }
            ],
            "datePublic": "2025-10-07T14:26:00.000Z",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-276",
                            "description": "Incorrect Default Permissions",
                            "lang": "en",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "x_redhatCweChain": "CWE-276: Incorrect Default Permissions",
            "timeline": [
                {
                    "lang": "en",
                    "time": "2025-09-10T17:28:57.860Z",
                    "value": "Reported to Red Hat."
                },
                {
                    "lang": "en",
                    "time": "2025-10-07T14:26:00.000Z",
                    "value": "Made public."
                }
            ],
            "credits": [
                {
                    "lang": "en",
                    "value": "Red Hat would like to thank Antony Di Scala and Mike Whale for reporting this issue."
                }
            ],
            "providerMetadata": {
                "orgId": "53f830b8-0a3f-465b-8143-3b8a9948e749",
                "shortName": "redhat",
                "dateUpdated": "2026-03-06T23:45:29.098Z"
            },
            "x_generator": {
                "engine": "cvelib 1.8.0"
            }
        },
        "adp": [
            {
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2025-10-22T18:25:27.188744Z",
                                "id": "CVE-2025-58712",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "total"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2025-10-22T18:37:06.272Z"
                }
            }
        ]
    }
}