🔍 CVE-2025-31480

9.1
CVSS Score
CRITICAL
2025-04-04
2026-04-15 00:35
✅ 완료

🇰🇷 한글 설명

aiven-extras PostgreSQL 확장에서 format 함수가 스키마 접두사 없이 정의되어 있어 데이터베이스 사용자가 악의적으로 동명의 함수를 생성한 후 이를 실행하게 하여 PostgreSQL 슈퍼유저 권한으로 승격할 수 있는 취약점입니다. 영향받는 데이터베이스마다 1.1.16으로 업그레이드하고 ALTER EXTENSION 명령을 실행하여 해결해야 합니다.

💡 쉬운 설명

PostgreSQL 데이터베이스 확장인 aiven-extras에서 권한을 악용하여 일반 사용자가 관리자 권한을 얻을 수 있는 보안 결함입니다. 패치 버전 1.1.16으로 업그레이드하면 해결됩니다.

🇺🇸 원문 (English)

aiven-extras is a PostgreSQL extension. This is a privilege escalation vulnerability, allowing elevation to superuser inside PostgreSQL databases that use the aiven-extras package. The vulnerability leverages the format function not being schema-prefixed. Affected users should install 1.1.16 and ensure they run the latest version issuing ALTER EXTENSION aiven_extras UPDATE TO '1.1.16' after installing it. This needs to happen in each database aiven_extras has been installed in.

📍 영향받는 시스템

aiven-extras PostgreSQL extension 1.1.16 미만 모든 버전

⚔️ 공격 벡터

로컬 PostgreSQL 데이터베이스 접근 권한을 가진 사용자가 format 함수를 악용하여 슈퍼유저 권한으로 승격

🛡️ 대응 방법

aiven-extras를 버전 1.1.16으로 업그레이드한 후 각 데이터베이스에서 ALTER EXTENSION aiven_extras UPDATE TO '1.1.16' 실행

🔧 검증 코드

명령어 실행 결과로 표시되는 버전이 1.1.16 이상이면 안전하며, 그 미만이면 취약한 상태입니다.

Shell / Script
psql -U postgres -d <database> -c "SELECT extversion FROM pg_extension WHERE extname = 'aiven_extras';"

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H

💻 영향받는 소프트웨어

PostgreSQL