By analyzing existing ciphertext-policy attribute-based encryption scheme, ciphertext-policy weighted attribute-based encryption scheme was proposed. To solve the existing scheme without considering the attribute with weight, the concept of weight was adopted into ciphertext-policy attribute-based encryption scheme. Meanwhile, the security of ciphertext-policy weighted attribute-based encryption scheme was proved under the selective-weighted attribute model. Moreover, the ciphertext-policy weighted attribute-based encryption scheme was given which has effective application in secure cloud computing environment. Analysis showed that the present scheme is more appropriate for the cloud computing environment than the existing schemes.