VDB
EN
CRITICAL 9.1

GHSA-fxmw-jcgr-w44v

pgadmin4 has a Meta-Command Filter Command Execution

상세

The PLAIN restore meta-command filter introduced in pgAdmin as part of the fix for CVE-2025-12762 does not detect meta-commands when a SQL file begins with a UTF-8 Byte Order Mark (EF BB BF) or other special byte sequences. The implemented filter uses the function `has_meta_commands()`, which scans raw bytes using a regular expression. The regex does not treat the bytes as ignorable, so meta-commands such as `\\!` remain undetected. When pgAdmin invokes psql with --file, psql strips the bytes and executes the command. This can result in remote command execution during a restore operation.

이 버전이 영향받나요?

사용 중인 패키지 버전을 입력하면 즉시 평가합니다.

영향 패키지

PyPI / pgadmin4
최초 영향 버전: 0 수정 버전: 9.11
수정 pip install --upgrade 'pgadmin4>=9.11'

참고