Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAccess application API
-
DeliveryCraft malicious sortField parameter
-
ExploitInject SQL into PageRequest query
-
ExecutionMyBatis-Plus executes unsanitized query
-
ImpactExtract/modify/delete database records
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Remote unauthenticated exploitation against default configurations of Yu Picture deployments running commit a053632c41340152bf75b66b3c543d129123d8ec or earlier. Attack requires only network access to the application's API endpoints that expose PageRequest functionality with sortField parameter handling. No user interaction, authentication, or non-default configuration needed (CVSS AV:N/AC:L/PR:N/UI:N confirms). Limiting factor: Exploitation impact constrained to database operations within the application's existing database connection privileges - attacker cannot directly escalate to OS-level access unless database user has elevated permissions (e.g., xp_cmdshell on MSSQL). The S:U (unchanged scope) in CVSS vector confirms exploitation remains within the vulnerable component's security boundary. |
| Impact | Real-world risk is HIGH despite moderate CVSS 7.3 score. The CVSS vector (AV:N/AC:L/PR:N/UI:N) confirms remote unauthenticated exploitation with low complexity - no special conditions required. Publicly available exploit code (GitHub issue #4) significantly lowers the attacker skill threshold. Exploitation status shows E:P (Proof-of-concept exists) with RL:O (Official fix available via PR #3 but not merged/released). The unpatched vendor response creates deployment uncertainty - organizations cannot simply upgrade to a safe version. The S:U (unchanged scope) limits impact to the vulnerable application's database, preventing lateral movement, but C:L/I:L/A:L indicates attackers can read sensitive data, modify records, or disrupt service. Critical gap: The product uses no versioning scheme, making it impossible for defenders to verify which deployed commit they're running or track patch status through conventional channels. This administrative burden elevates operational risk beyond the technical vulnerability severity. |
| Exploit ScenarioDerived | An unauthenticated remote attacker sends a crafted HTTP request to the Yu Picture API endpoint accepting PageRequest parameters, injecting SQL syntax into the sortField parameter (e.g., sortField='name; DROP TABLE pictures--'). The vulnerable PictureServiceImpl.java code passes this unsanitized input to MyBatis-Plus query construction, where it executes as part of the SQL ORDER BY clause. The attacker achieves arbitrary SQL execution within the application's database context, extracting user credentials, modifying image metadata, or deleting picture records. Public exploit code documented in GitHub issue #4 provides ready-made attack payloads, enabling even low-skill attackers to exploit vulnerable instances. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 26, 2026
SQL injection in Yu Picture's PageRequest handler allows remote unauthenticated attackers to manipulate database queries via the sortField parameter in PictureServiceImpl.java. The vulnerability exists in MyBatis-Plus integration code at commit a053632c41340152bf75b66b3c543d129123d8ec. Publicly available exploit code exists (GitHub issue #4) with EPSS not yet calculated. Vendor patch available via pull request #3 but remains unmerged, leaving deployed instances vulnerable. CVSS 7.3 reflects network-accessible, low-complexity exploitation with no authentication required, enabling partial confidentiality, integrity, and availability compromise.
RemediationAI
Primary fix: Apply the patch from GitHub pull request https://github.com/liyupi/yu-picture/pull/3 by manually merging the changes into your deployment, as the vendor has not yet integrated the fix into the main branch. Review the PR diff to understand the input validation added to sortField parameter handling. Workaround if immediate patching is infeasible: Implement application-layer input validation by restricting sortField values to an explicit allowlist of permitted column names (e.g., ['created_time', 'update_time', 'name']) before passing to MyBatis-Plus query builders. Deploy a web application firewall (WAF) rule to block requests containing SQL metacharacters in sortField parameters, though this may cause false positives and is not a substitute for code-level fixes. Side effect consideration: Allowlist validation will break any legitimate custom sort features relying on dynamic column names. Organizations must audit their API usage before deploying restrictive input filters. Long-term: Advocate for the vendor to adopt semantic versioning and merge outstanding security patches to enable standard upgrade workflows.
Affected VersionsENISA
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
This vulnerability affects Yu Picture (cpe:2.3:a:liyupi:yu-picture), a Java-based image management application. The root cause (CWE-89: SQL Injection) originates in the sortField parameter handling within the PageRequest function of PictureServiceImpl.java. MyBatis-Plus, a popular Java ORM framework extending MyBatis, is used for database operations. The vulnerability occurs when user-controlled sortField input is passed unsanitized into SQL query construction. MyBatis-Plus's dynamic query building features, while powerful, require explicit input validation to prevent injection when accepting external sort parameters. The affected code constructs database queries that incorporate the sortField value without proper parameterization or allowlist validation, enabling attackers to inject arbitrary SQL fragments.
Know when Java 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
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
Primary rating from Vendor (VulDB) · only source for this CVE.
CVSS VectorVendor: VulDB
Lifecycle Timeline
6DescriptionCVE.org
A vulnerability was determined in liyupi yu-picture up to a053632c41340152bf75b66b3c543d129123d8ec. This impacts the function PageRequest of the file yu-picture-backend/src/main/java/com/yupi/yupicturebackend/service/impl/PictureServiceImpl.java of the component MyBatis-Plus. Executing a manipulation of the argument sortField can lead to sql injection. The attack can be launched remotely. The exploit has been publicly disclosed and may be utilized. This product does not use versioning. This is why information about affected and unaffected releases are unavailable. Applying a patch is advised to resolve this issue. The project was informed of the problem early through a pull request but has not reacted yet.
Executive ViewAI
CVE-2026-7060 is a critical SQL injection vulnerability in Yu Picture's PageRequest handler that allows unauthenticated attackers to manipulate database queries and compromise confidentiality, integrity, and availability of picture data. Organizations using Yu Picture must apply the available patch immediately, as publicly available exploit code exists and the vulnerability requires no authentication or user interaction to exploit.
Apply vendor patch. If immediate patching is not feasible, implement network-level access restrictions to limit exposure to PageRequest endpoints, deploy WAF rules to sanitize sortField parameter inputs, and enable comprehensive audit logging of database queries for forensic detection.
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
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m
Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti
Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent
Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug
JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up
Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up
The WLS Security component in Oracle WebLogic Server 10.3.6.0, 12.1.2.0, 12.1.3.0, and 12.2.1.0 allows remote attackers
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow
Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla
The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during
EUVD-2026-25730
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB